import Vue from 'vue'
import moment from 'moment'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'dhWAObc1BRUmGd56eaBwf8mC7C18dTmO'
})
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN'

import '@/styles/index.scss' // global css

import App from './App'
import router from './router'
import store from './store'
import Distpicker from 'v-distpicker'

Vue.component('v-distpicker', Distpicker)
import '@/icons' // icon
import '@/permission' // permission control

Vue.use(ElementUI, { locale })
Vue.config.productionTip = false
moment.locale('zh-cn')
Vue.prototype.$moment = moment
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
